{% extends "layout.html" %}
{% block body %}
{% if session.logged_in %}
{% endif %}
<ul class="entries">
    {% for entry in all_blog %}
    <li>
        <h2>{{entry.title}}</h2>
        <a href="{{url_for('manage_del', id=entry.id)}}">delete</a>&nbsp&nbsp&nbsp&nbsp
        <a href="{{url_for('manage_modify', id=entry.id)}}">modify</a><br>
        {{entry.text|safe}}

    </li>
    {% else %}
    <li><em>Unbelievable. No entries here so far </em></li>
    {% endfor %}
</ul>
{% endblock body %}